package com.yhd.mapper;


import com.yhd.entity.TCourseAbout;
import com.yhd.entity.TCourseScheduleDetail;
import com.yhd.entity.dto.CourseAboutDto;
import com.yhd.entity.dto.CourseScheduleDetailDto;
import com.yhd.entity.query.CourseScheduleDetailVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface CourseAboutMapper extends Mapper<TCourseAbout> {


    /**
     * 获取排课人员数量
     * @param courseSchId
     * @return
     */
    int getAboutCount(@Param("courseSchId") Integer courseSchId);

    Integer getUserAboutCount(@Param("startTime") Date startTime,@Param("endTime") Date endTime, @Param("userId")  String userId);

    /**
     * 获取课程排课列表
     * @param courseScheduleDetailVO
     * @return
     */
    List<CourseScheduleDetailDto> selectCourseScheduleList(CourseScheduleDetailVO courseScheduleDetailVO);
	
	List<CourseAboutDto> getUserAboutList(@Param("userId")String userId, @Param("status")Integer status);
}